<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib prefix="auth" uri="http://youaishujuhui/analysis.com/auth"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- HEADER -->
<header class="header affix" role="banner">

<nav class="header-navbar">
  
    <div class="collapse navbar-collapse" id="mini-navbar-collapse">
    
    <a class="logo pull-left" href="${pageContext.request.contextPath}">
	    <%-- <img src="${pageContext.request.contextPath}/static/img/head.png" width="110" alt="Quarca Logo"> --%>
	    <!-- <i class="log_icon"></i> -->
	    <span class="head_logo"><i class="yicon-head3" aria-hidden="true"></i></span>
	</a>
    
    <ul class="nav navbar-nav navbar-left navbar-group">
    
       <!-- <li class="nav-item  navbar_item_game" data-link="">
       
          <div class="navbar-item-title" id="game_name">仙境</div>
          <span class="navbar-item-icon right"><i class="fa fa-sort-desc" aria-hidden="true"></i></span>
          <ul class="navbar-group nav-level2-group" id="game_selece_ul">
            <li class="nav-item nav-level2 active" data-id="1" data-val="roh5">
              <span class="navbar-item-title">仙境</span>
            </li>
            <li class="nav-item nav-level2" data-id="2" data-val="dhh">
              <span class="navbar-item-title">大航海</span>
            </li>
          </ul>
       </li> -->

		<auth:auth resource="/host/page" >
	        <li class="nav-item nav-level1" data-link="${pageContext.request.contextPath}/host/page">
	            <span class="navbar-item-icon"><i class="fa fa-cloud fa-fw" aria-hidden="true"></i></span>
	            <span class="navbar-item-title">主机管理</span>
	        </li>
	    </auth:auth>

        <auth:auth resource="/game/page" >
	        <li class="nav-item nav-level1" data-link="${pageContext.request.contextPath}/game/page">
	            <span class="navbar-item-icon"><i class="fa fa-gamepad fa-fw" aria-hidden="true"></i></span>
	            <span class="navbar-item-title">游戏管理</span>
	        </li>
	    </auth:auth>
	    
	    <auth:auth resource="/channel/page" >
	        <li class="nav-item nav-level1" data-link="${pageContext.request.contextPath}/channel/page">
	            <span class="navbar-item-icon"><i class="fa fa-external-link fa-fw" aria-hidden="true"></i></span>
	            <span class="navbar-item-title">渠道管理</span>
	        </li>
	    </auth:auth>
	    
	    <auth:auth resource="/db/page" >
	        <li class="nav-item nav-level1" data-link="${pageContext.request.contextPath}/db/page">
	            <span class="navbar-item-icon"><i class="fa fa-database fa-fw" aria-hidden="true"></i></span>
	            <span class="navbar-item-title">数据库管理</span>
	        </li>
	    </auth:auth>
	    
        <auth:auth resource="/manage/page" >
	        <li class="nav-item nav-level1" data-link="${pageContext.request.contextPath}/manage/page">
	            <span class="navbar-item-icon"><i class="fa fa-gears fa-fw" aria-hidden="true"></i></span>
	            <span class="navbar-item-title">系统管理</span>
	        </li>
	    </auth:auth>
    </ul>
    
	
	<ul class="nav navbar-nav navbar-right navbar-group">
	   <!--  <li class="nav-item nav-item" data-link="">
		  <span class="navbar-item-icon"><i class="fa fa-book" aria-hidden="true"></i></span>
		  <span class="navbar-item-title">说明</span>
	    </li> -->
	    <li class="turn-off nav-item nav-level1">

		  <span class="navbar-item-icon"><i class="fa fa-user" aria-hidden="true"></i></span>
		  <span class="navbar-item-title sys-item" id="login_name">${userName}</span>
		  <ul class="navbar-group nav-level2-group">
              <li class="nav-item nav-level2" data-link="${pageContext.request.contextPath}/logout" data-target="window">
                  <span class="navbar-item-icon"><i class="yicon-quit" aria-hidden="true"></i></span>
                  <span class="navbar-item-title">退出</span>
              </li>
          </ul>
	    </li>
	</ul>
    </div><!-- navbar-collapse -->
</nav>

</header>
	<!-- HEADER -->
<%@include file="../include/jslib.jsp"%>
<!-- <script type="application/javascript">
    var __productId = '${productId}';
    $.wajax({
        url:CONTEXT_PATH + '/productList',
        success:function(res){
            $('#login_name').text(res.data.loginName);
            var $ul = $('#game_selece_ul');
            $ul.html('');
            var list = res.data.productList;
            for(var i=0;i<list.length;i++){
            /*<li class="nav-item nav-level2 active" data-id="1" data-val="roh5">
                    <span class="navbar-item-title">仙境</span>
                    </li>*/
                var $li = $('<li class="nav-item nav-level2"><span class="navbar-item-title"></span></li>');
                $li.attr('data-id',list[i].id);
                $li.attr('data-val',list[i].code);
                $li.children('span').text(list[i].name);
                if(__productId==list[i].id){
                    $li.addClass('active')
                    $('#game_name').text(list[i].name);
                }
                $ul.append($li);
            }
        }
    });
</script> -->